package com.finance.report.dao;

import com.finance.framework.lang.Page;
import com.finance.report.bean.pojo.LogisticsErrorLog;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface LogisticsErrorLogMapper {
	LogisticsErrorLog getById(@Param("tableName")String taleName,@Param("id") Long id);

	List<LogisticsErrorLog> getByMonth(@Param("tableName")String taleName,@Param("month") String month);

	List<Map> listAll(@Param("tableName")String taleName);

	List<LogisticsErrorLog> listByPage(Page page);

	int queryListCount(@Param("tableName")String taleName,Map param);

	int add(@Param("tableName")String taleName,@Param("logisticsErrorLog") LogisticsErrorLog logisticsErrorLog);

	int delete(@Param("tableName")String taleName,Long id);

	int deleteByMonth(@Param("tableName")String taleName,@Param("month") String month);

	int update(@Param("tableName")String taleName,LogisticsErrorLog logisticsErrorLog);

	int deleteByWaybillNum(@Param("tableName")String tableName, @Param("wayBillNum") String wayBillNum);
}